Skip to content

perf(binder): avoid duplicate reconciliation events - #2032

Draft
enoodle wants to merge 2 commits into
kai-scheduler:mainfrom
enoodle:binder-event-replay
Draft

perf(binder): avoid duplicate reconciliation events#2032
enoodle wants to merge 2 commits into
kai-scheduler:mainfrom
enoodle:binder-event-replay

Conversation

@enoodle

@enoodle enoodle commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Description

Removes duplicate controller event sources for Pods and BindRequests, removes the no-op Pod controller ConfigMap watch, and prevents Pod events from enqueuing no-op reconciliations.

BindRequest event handling now skips terminal requests while preserving delayed retries and shared-GPU deletion cleanup. This reduces startup replay work and worker contention without changing binding semantics.

Related Issues

N/A

Checklist

  • Self-reviewed
  • Added/updated tests
  • Updated documentation
  • Added a changelog fragment via make changelog

Breaking Changes

None.

Additional Notes

Focused controller tests pass after rebase.

enoodle added 2 commits August 7, 2026 16:52
Signed-off-by: Erez Freiberger <enoodle@gmail.com>
Signed-off-by: Erez Freiberger <enoodle@gmail.com>
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

Total coverage: 54.5% -> 54.7% (delta 0.20%)

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/kai-scheduler/KAI-scheduler/pkg/binder/controllers 75.00% (+28.15%) 🌟

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/kai-scheduler/KAI-scheduler/pkg/binder/controllers/bindrequest_controller.go 76.61% (+8.94%) 124 (+25) 95 (+28) 29 (-3) 👍
github.com/kai-scheduler/KAI-scheduler/pkg/binder/controllers/pod_controller.go 68.75% (+68.75%) 32 (-12) 22 (+22) 10 (-34) 🌟

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/kai-scheduler/KAI-scheduler/pkg/binder/controllers/bindrequest_controller_test.go
  • github.com/kai-scheduler/KAI-scheduler/pkg/binder/controllers/pod_controller_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant